#ifndef __VOLTAGE_SENSOR
#define __VOLTAGE_SENSOR

#ifndef STM32F10X_MD
        #define STM32F10X_MD
#endif
#ifndef USE_STDPERIPH_DRIVER
        #define USE_STDPERIPH_DRIVER
#endif

typedef struct _VoltageSensor VoltageSensor;

/**
 * @brief 获取电压传感器全局对象
 */
extern VoltageSensor *voltage_sensor_new_from_global(void);

/**
 * @brief 采集电压传感器的电流值
 */
extern float voltage_sensor_get_voltage(const VoltageSensor *self);

#endif
